package com.sqx.modules.app.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sqx.modules.app.dao.AddressDao;
import com.sqx.modules.app.dao.ServiceTimeDao;
import com.sqx.modules.app.entity.Address;
import com.sqx.modules.app.entity.ServiceTime;
import com.sqx.modules.app.service.AddressService;
import com.sqx.modules.app.service.ServiceTimeService;
import org.springframework.stereotype.Service;


@Service("ServiceTimeService")
public class ServiceTimeServiceImpl extends ServiceImpl<ServiceTimeDao, ServiceTime> implements ServiceTimeService {

    @Override
    public ServiceTime selectServiceTime(String serviceTime,Long companyId){
        return baseMapper.selectOne(new QueryWrapper<ServiceTime>().eq("service_time",serviceTime).eq("company_id",companyId));
    }

}
